<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@page import="com.tjsinfo.tjsoa.common.ToolKit"%>
<%@page import="com.tjsinfo.tjsoa.documentationflow.dangweifawen.vo.TDangweifawenYijian"%>
<%@page import="com.tjsinfo.tjsoa.documentationflow.dangweifawen.vo.TDangweifawenNeirong"%>
<%@page import="com.tjsinfo.tjsoa.documentationflow.dangweifawen.vo.TDangweifawenFujian"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
TDangweifawenNeirong dangweifawenNeirong = (TDangweifawenNeirong)request.getAttribute("dangweifawenNeirong");
Long  taskid = (Long)request.getAttribute("taskid"); 
Integer number = (Integer)request.getAttribute("number");
String date = ToolKit.FormatDate(new Date());
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
  	<meta http-equiv="x-ua-compatible" content="ie=7" />
    <base href="<%=basePath%>"/>
    
    <title>套红盖章</title>

	<link href="<%=basePath%>style/txlz7.css" rel="stylesheet" type="text/css" />  
<style>
.blcontent{
background:url(images/bl02.gif) repeat-y 0 0; width:564px; padding-top:10px }
.tjfjcontent{
background:url(images/tjfj02.gif) repeat-y 0 0; width:456px; padding-top:10px}
</style>
<style>
.zhtab01 th{
font-size:17px; color:#206993; height:30px;border-bottom:2px #206993 solid}
.zhtab01 td{
font-size:14px;color:#206993; font-weight:bold;}
.zhtab02 td{
border-bottom:1px #206993 solid;border-right:1px #206993 solid; padding:10px; vertical-align:top;}
.zhtab03 td{
border-bottom:1px #206993 solid; padding:10px; vertical-align:top;}
.zhtab04 th{
border-bottom:2px #206993 solid; border-top:2px #206993 solid; text-align:left; padding:10px;font-size:14px;color:#206993; }
.zhtab04 td{border-bottom:2px #206993 solid; }
.zhtab05 th{
height:10px;border-bottom:1px #206993 solid; border-top:0;}
.zhtab05 td{
height:25px;border-bottom:1px #206993 solid; border-top:0;}
</style>
	<link href="<%=basePath %>ajaxFramework/ext-2.1/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/ext-all.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/ext-2.1/source/locale/ext-lang-zh_CN.js"></script>
    <script type="text/javascript" src="<%=basePath %>ajaxFramework/jQuery/jquery.js"></script>
    <script type="text/javascript" src="<%=basePath %>js/common/system/selectusercheck.js"></script>
    <script type="text/javascript" src="<%=basePath %>js/common/system/selectuserradio.js"></script>
    <script type="text/javascript" src="<%=basePath %>js/common/global/validator.js"></script>
	<script type="text/javascript" src="<%=basePath %>js/common/global/pageControl.js"></script>
      <script type="text/javascript">
		function init(){
			var url = "<%=basePath%>documentationflow/dangweifawen/opendoc.jsp?docname=<%=dangweifawenNeirong.getDocname()%>&WorkMode=0";
			with(document.all)
			{
			srctext.src = url;
			}
			var dr = new Ext.form.DateField ({
				format:'Y-m-d',   
		        applyTo:'fawenDate',   
		        readOnly:true,   
		        emptyText:'请选择发文日期',
				width:150
		    });
		}
		$(function(){
			$("#gwlz_title a").get(0).href="javascript:change(1)";
			$("#gwlz_title a").get(1).href="javascript:change(2)";
			$("#gwlz_title a").get(2).href="javascript:change(3)";
			$("#gwlz_title a").get(3).href="javascript:change(4)";
		});
		
		function change(start){
			if(start == 1)
			{
				$("#gwlz_title a").get(0).className="over";
				$("#gwlz_title a").get(1).className="";
				$("#gwlz_title a").get(2).className="";
				$("#gwlz_title a").get(3).className="";
				$("#span1").show();
				$("#span2").hide();
				$("#span3").hide();
				$("#span4").hide();	
			}
			else if(start == 2)
			{
				$("#gwlz_title a").get(1).className="over";
				$("#gwlz_title a").get(0).className="";
				$("#gwlz_title a").get(2).className="";
				$("#gwlz_title a").get(3).className="";
				$("#span2").show();
				$("#span1").hide();
				$("#span3").hide();
				$("#span4").hide();	
			}
			else if(start == 3)
			{
				$("#gwlz_title a").get(2).className="over";
				$("#gwlz_title a").get(0).className="";
				$("#gwlz_title a").get(1).className="";
				$("#gwlz_title a").get(3).className="";
				$("#span3").show();
				$("#span1").hide();
				$("#span2").hide();
				$("#span4").hide();	
			}
			else if(start == 4)
			{
				$("#gwlz_title a").get(3).className="over";
				$("#gwlz_title a").get(0).className="";
				$("#gwlz_title a").get(1).className="";
				$("#gwlz_title a").get(2).className="";
				$("#span4").show();
				$("#span1").hide();
				$("#span2").hide();
				$("#span3").hide();	
			}
			
		}
		function f_submit(){
			msg();
			srctext.savedoc();
			document.form1.submit();
		}
	</script>	
  </head>
  
  <body onload="init()">
  	
  	<form action="<%=basePath %>tjsinfo/tjsoa/dangweifawen/shenpi.do?method=taohong" method="post" name="form1">
   <div id="rightindex">
   <div id="swcbdcontent"> 
      <!--导航开始处-->
      <div id="ttt">
        <div id="gwlz_title">
            <ul>
                <li id="li1"><a href="#"><span>发文承办单</span></a></li>
                <li class="over" id="li2"><a href="#"><span>正文</span></a></li>
                <li id="li3"><a href="#"><span>附件</span></a></li>
                <li  id="li4"><a href="#"><span>办理</span></a></li>
            </ul>
        </div>
        <div style="overflow-y:scroll; height:96%">
        <div class="swcbdtab" style="display: none;" id="span1">
        
     	<table width="70%" border="0" cellspacing="0" cellpadding="0" align="center" class="zhtab01">
          <tr>
            <th align="center" style="font-size:26px" colspan="2">中共天津中环电子信息集团有限公司工会发文稿纸</th>
          </tr>
          <tr>
            <td width="50%">
            	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="zhtab02" height="350">
                  <tr>
                    <td height="75">签发：
                      <%
                    		Iterator yijianit4 = dangweifawenNeirong.getTDangweifawenYijians().iterator();
                    		while(yijianit4.hasNext())
                    		{
                    			TDangweifawenYijian yijian = (TDangweifawenYijian)yijianit4.next();
                    			if("签发".equals(yijian.getFlowName()) )
                    			{
                    %>
                    <%=yijian.getOpinion()+" " +yijian.getExamineUserName()+" " + ToolKit.FormatDate(yijian.getExamineDate()) %><br/>
					<% 				
                    					
                    			}
                    			
                    		}
                    	%>
                    </td>
                  </tr>
                  <tr>
                    <td height="75">会签：
                         <%
                    		Iterator yijianit3 = dangweifawenNeirong.getTDangweifawenYijians().iterator();
                    		while(yijianit3.hasNext())
                    		{
                    			TDangweifawenYijian yijian = (TDangweifawenYijian)yijianit3.next();
                    			if("会签".equals(yijian.getFlowName()) )
                    			{
                    %>
                    <%=yijian.getOpinion()+" " +yijian.getExamineUserName()+" " + ToolKit.FormatDate(yijian.getExamineDate()) %><br/>
					<% 				
                    					
                    			}
                    			
                    		}
                    	%>
                    </td>
                  </tr>
                  <tr>
                    <td height="130">标题：</td>
                  </tr>
                  <tr>
                    <td height="70">主送机关：<%=dangweifawenNeirong.getZhusong() %></td>
                  </tr>
                </table>
          	</td>
            <td width="50%">
            	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="zhtab03" height="350">
                  <tr>
                    <td height="75">复核：
                     <%
                    		Iterator yijianit2 = dangweifawenNeirong.getTDangweifawenYijians().iterator();
                    		while(yijianit2.hasNext())
                    		{
                    			TDangweifawenYijian yijian = (TDangweifawenYijian)yijianit2.next();
                    			if("复核".equals(yijian.getFlowName()) )
                    			{
                    %>
                    <%=yijian.getOpinion()+" " +yijian.getExamineUserName()+" " + ToolKit.FormatDate(yijian.getExamineDate()) %><br/>
					<% 				
                    					
                    			}
                    			
                    		}
                    	%>
                    </td>
                  </tr>
                  <tr>
                    <td height="75">核稿：
                  <%
                    		Iterator yijianit = dangweifawenNeirong.getTDangweifawenYijians().iterator();
                    		while(yijianit.hasNext())
                    		{
                    			TDangweifawenYijian yijian = (TDangweifawenYijian)yijianit.next();
                    			if("核稿".equals(yijian.getFlowName()) )
                    			{
                    %>
                    <%=yijian.getOpinion()+" " +yijian.getExamineUserName()+" " + ToolKit.FormatDate(yijian.getExamineDate()) %><br/>
					<% 				
                    					
                    			}
                    			
                    		}
                    	%>
                    </td>
                  </tr>
                  <tr>
                    <td height="65">主办单位和拟稿人：<%="组织部"%>&nbsp;&nbsp;<%=dangweifawenNeirong.getNigaorenname() %></td>
                  </tr>
                  <tr>
                    <td height="85">附件：<%=dangweifawenNeirong.getFujian() %></td>
                  </tr>
                  <tr>
                    <td height="29">抄送机关：
                    	<%
                    		if(dangweifawenNeirong.getChaosong() != null )
                    		{
                    			out.print(dangweifawenNeirong.getChaosong());
                    		}
                    	
                    	%>
                    </td>
                  </tr>
                </table>
            </td>
          </tr>
          <tr><td colspan="2" style="padding:10px">打字：</td></tr>
        </table>
        <table width="70%" border="0" cellspacing="0" cellpadding="0" class="zhtab04" align="center">
          <tr>
            <th>发文：&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;月&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;日封发</th>
          </tr>
          <tr>
            <td>
            	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="zhtab05">
                 
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <th>&nbsp;</th>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <th>&nbsp;</th>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <th>&nbsp;</th>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <th>&nbsp;</th>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                  </tr>
                  <tr>
                    <th>&nbsp;</th>
                  </tr>
                </table>
            </td>
          </tr>
        </table>
        
        </div>
        <div class="swcbdtab" id="span2" >
         <table width="97%" border="0" cellpadding="0" cellspacing="0">
         	<tr><td align="right"><a href="<%=basePath %>system/frame.jsp"><img src="images/qx.gif" /></a></td></tr>
         </table>
       	
        <iframe id="srctext" width="100%" height="650px" frameborder=yes HTTP-EQUIV="Content-Type"  wrap="virtual"></iframe>
        </div>
        <div class="swcbdtab" style="display: none;" id="span3">
        	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:80px">
              <tr>
                <td align="center">
                    <table width="564" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><img src="images/tjfj01.gif" /></td>
                      </tr>
                      <tr>
                        <td><div class="tjfjcontent">
                                <table width="90%" height="90%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                              	<%
                                		Iterator iterator = dangweifawenNeirong.getTDangweifawenFujians().iterator();
                                		while(iterator.hasNext())
                                		{
                                			TDangweifawenFujian dangweifawenFujian = (TDangweifawenFujian)iterator.next();
                                	%>
                                		<a href="<%=basePath %>tjsinfo/tjsoa/dangweifawen/shenpi.do?method=download&id=<%=dangweifawenFujian.getId() %>"><%=dangweifawenFujian.getFujianName() %></a><br/>
                                	<% 		
                                		}
                                	%>
        				         
                                </table>
                            </div></td>
                      </tr>
                      <tr>
                        <td><img src="images/tjfj03.gif" /></td>
                      </tr>
                    </table>
                    <a href="<%=basePath %>system/frame.jsp"><img src="images/qx.gif" /></a>
                </td>
              </tr>
          </table>
        	
        	
        </div>
        <div class="swcbdtab"  id="span4" style="display: none;">
        	<table width="100%" border="0" cellspacing="0" cellpadding="0" style="margin-top:60px">
              <tr>
                <td align="center">
                    <table width="564" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><img src="images/bl01.gif" /></td>
                      </tr>
                      <tr>
                        <td><div class="blcontent">
                                <table width="90%" height="100%" border="0" cellspacing="0" cellpadding="0" class="researchtab">
                        			  <tr>
                                    <td width="30%" align="center">选择文号</td>
                                    <td width="60%" align="left">
                                     <input  type="text" name="numbertype" id="numbertype" size="12" value="<%="津中电工团发" %>"/>[ <input  type="text" size="4" name="year" id="year" value="<%=(new Date()).getYear() +1900%>"/>]年<input  type="text" size="4"  name="number" id="number" value="<%=number %>"/>号
                                    </td>
                                  </tr>
                                   <tr>
                                    <td width="30%" align="center" height="5px"></td>
                                    <td width="60%" align="left" height="5px">
                                    
                                    </td>
                                  </tr>
                                   <tr>
                                    <td width="30%" align="center">发文日期</td>
                                    <td width="60%" align="left">
                                     	<input name="fawenDate" value="<%=date %>" type="text" id="fawenDate" size="40" />
                                    </td>
                                  </tr>
                                  <tr>
                                    <td colspan="3" height="50"><a href="javascript:f_submit()"><img src="images/an_tj.gif" /></a>&nbsp;
                                    <a href="<%=basePath %>system/frame.jsp"><img src="images/qx.gif" /></a>
                                    </td>
                                   </tr>
                                </table>
                            </div></td>
                      </tr>
                      <tr>
                        <td><img src="images/bl03.gif" /></td>
                      </tr>
                    </table>
                </td>
              </tr>
          </table>
        </div>
   	  </div>
   	  </div> 
   </div>
</div>
	  
	<input  type="hidden" name="id" value="<%=dangweifawenNeirong.getId() %>"/>
   	 <input  type="hidden" name="taskid" value="<%=taskid %>"/>
</form>
   
  </body>
</html>
